module.exports = {
    disabled: 0,
    // delay: 300,
    body: function (query, post) {
        var pg = post.page || {}
        var page = pg.page || 1
        var pageSize = pg.pageSize || 200
        var total = 200
        return {
            'data': new Array(pageSize).fill().map(getOne),
            page: { total },
            'errcode': 200,
            'errmsg': '操作成功',
        }

        function getOne(n, i) {
            var id = (page * pageSize + i)
            return {
                id,
                'manage_leader_name': 'parent_group_id' + id,
                'group_name': '单位' + id,
                'name': '人员' + id,
                isTop: Math.random() > 0.5,
                createTime: +new Date() + id * 1000000
            }
        }
    }
}


